package cn.sfrog.project.biz.admin.domain.vo;

import cn.sfrog.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
@ApiModel(description = "用户分佣记录")
public class BizUserCommissionVO {

    @ApiModelProperty("id")
    @Excel(name = "id")
    private Long id;

    @ApiModelProperty("用户id")
    @Excel(name = "用户id")
    private Long userId;

    @ApiModelProperty("来源【1=充值】")
    @Excel(name = "来源【1=充值】")
    private String source;

    @ApiModelProperty("充值表id")
    @Excel(name = "充值表id")
    private Long rechargeId;

    @ApiModelProperty("充值用户id")
    @Excel(name = "充值用户id")
    private Long rechargeUserId;

    @ApiModelProperty("充值金额")
    @Excel(name = "充值金额")
    private BigDecimal rechargeAmount;

    @ApiModelProperty("分佣等级 1=一级（上级） 2=二级（上上级）")
    @Excel(name = "分佣等级 1=一级（上级） 2=二级（上上级）", readConverterExp = "上=级")
    private Integer commissionLevel;

    @ApiModelProperty("分佣金额")
    @Excel(name = "分佣金额")
    private BigDecimal commissionAmount;

    @ApiModelProperty("用户名称")
    private String nickName;

    @ApiModelProperty("流水号")
    private String serialNumber;

    @ApiModelProperty("充值用户名称")
    private String rechargeNickName;

    @ApiModelProperty("充值用户手机号")
    private String phonenumber;


    @ApiModelProperty("备注")
    @Excel(name = "备注")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
